package SV_SENSITIVE_DATA;
import java.io.IOException;
import java.io.Writer;
public class Fixed_02 {
    public static class WriteInfo {
        public void write(Writer w, User user) throws IOException {
            String encryptedPassword = encrypt(user.getPassword());
            w.write(encryptedPassword);
        }
        private String encrypt(String value) {
            String encrypted = "";
            // ... do encryption
            return encrypted;
        }
        public static class User {
            public String getPassword() {
                return "pw";
            }
        }
    }

//    @Bind("SV.SENSITIVE.DATA")
//    class Writer {
//        @Check("return") private String encrypt(String value);
//    }
//
//    @CheckerParam("SV.SENSITIVE.DATA", "name,dob,address")
//
//    @Bind("SV.SENSITIVE.DATA")
//    class Writer {
//        @Check("return") public String encrypt(String value);
//    }
}
